package com.hjjt.cameralib.cameraengin

import com.hjjt.cameraplugin.CameraEngineConfig

/**
 *
 * @ProjectName:    PluginDemo
 * @Package:        com.hjjt.cameralib.cameraengin
 * @ClassName:      摄像头工厂
 * @Description:
 * @Author:         孙浩
 * @CreateDate:     2022/5/31 15:48
 */
 object CameraFactory {
    fun createCameraEngine(type: CameraEngineConfig.CameraEngineType): CameraEngine? {
        return when (type) {
            CameraEngineConfig.CameraEngineType.CLOUD_WALK -> CloudWalkCamera()
            else -> null
        }
    }
}